# -*- coding: utf-8 -*-
import os

__author__ = 'nibo'

basedir = os.path.abspath(os.path.dirname(__file__))
SECRET_KEY = '\xb1d\xd6D\x85\x8dh\x99\x06\xb3U\xec\xf9\xb3N\xc9{\xe6\x1e\xbf\x0f\x1e\n\xf9'
# sqlite数据库文件路径
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
# 存储SQLAlchemy-migrate数据库文件的文件夹
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
# 搜索数据库路径
WHOOSH_BASE = os.path.join(basedir, 'search.db')
# 搜索结果返回的最大记录数
MAX_SEARCH_RESULTS = 50

# 每页显示的微博记录条数
POSTS_PER_PAGE = 3

# 邮件服务配置
MAIL_SERVER = 'smtp.163.com'
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USE_SSL = False
MAIL_USERNAME = 'username@163.com'
MAIL_PASSWORD = 'password'


# 管理员邮箱列表
ADMINS = ['admin@163.com']

if __name__ == '__main__':
    print basedir
